<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box01 {
            width: 200px;
            height: 200px;
            border: 1px solid #000000;
            background-color: gold;
            margin: 0px auto;
        }

        .box01>div {
            width: 120px;
            height: 50px;
            background-color: green;
            margin: 75px auto;

        }

        .box02 {
            width: 120px;
            background-color: gold;
            padding: 75px 40px;
        }

        .box02>div {
            width: 120px;
            height: 50px;
            background-color: green;

        }
    </style>
</head>

<body>
    <div class="box01">
        <div>

        </div>
    </div>

    <div class="box02">
        <div>

        </div>
    </div>
</body>

</html>